package com.springIOC.Pointcut;

import org.springframework.aop.MethodMatcher;

import java.lang.reflect.Method;

/**
 * Created by 41579 on 2017/1/13.
 */
public class MyMethodMatcher1 implements MethodMatcher{
    public boolean matches(Method method, Class<?> targetClass) {
        return true;
    }

    public boolean isRuntime() {
        return true;
    }

    public boolean matches(Method method, Class<?> targetClass, Object[] args) {
        return method.getName().equals("test")||method.getName().equals("bean5Function1");
    }
}
